/**
 * 类型判断
 */
const toString = Object.prototype.toString;

export function isDate (val: any):val is Date{
  return toString.call(val) === '[object Data]';
}

export function isObject (val: any):val is Object{
  // console.log(toString.call(val));
  return toString.call(val) === '[object Object]';
}